<<<<<<< HEAD
# coding=utf-8
import arcpy

str = arcpy.GetParameterAsText(0)
str = str.replace("+", "")
str = str.replace("-", "")
str = str.replace("（", "_")
str = str.replace("，", "_")
str = str.replace("）", "_")
str = str.replace(".", "")
arcpy.SetParameterAsText(1, str)
=======
import arcpy

fc = arcpy.GetParameter(0)
cursor = arcpy.UpdateCursor(fc)
count=arcpy.GetParameter (1)

for i in range(1, count+1):
    for j in range(1, count+1):
        routeName = str(i)+"-"+str(j)
        row = cursor.next()
        row.setValue("RouteName", routeName)
        cursor.updateRow(row)

for i in range(1, count+1):
    for j in range(1, count+1):
        routeName = str(j)+"-"+str(i)
        row = cursor.next()
        row.setValue("RouteName", routeName)
        cursor.updateRow(row)
del cursor
t="True"
arcpy.SetParameterAsText(2, t)
>>>>>>> 982652364c95fee7ef0ef9c0c1f72309bd550051
